package summer_vacation.zengguangchuan;

import java.util.Scanner;

/**作业20
 * Created by lenovo0 on 2015/8/28.
 */
public class Assignment_9 {
    public static void main(String[] args){
         System.out.println("请任意输入一组字符：");
        Scanner input=new Scanner(System.in);
        String j=input.nextLine();
        int m=0,n=0;
        for(int i=0;i<j.length();i++){
            char k=j.charAt(i);
            if((k>'a')&&(k<'z')){
                m++;
            }
            if((k>'A')&&(k<'Z')){
                n++;
            }
        }
        System.out.println("m的个数为"+m);
        System.out.println("n的个数为"+n);
        if(m!=n){
            if(m>n){
                System.out.println("m为较大者");
            }else
                System.out.println("n为较大者");
        }
    }
}
